package org.linlinjava.litemall.db.service;

import org.linlinjava.litemall.db.dao.SubscribeUserOrderMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 订阅用户订单服务
 *
 * @author yliyun
 * @date 2022/09/28
 */
@Service
public class SubscribeUserOrderService {
    /**
     * 订阅用户顺序映射器
     */
    @Resource
    private SubscribeUserOrderMapper subscribeUserOrderMapper;


    /**
     * 得到订单num不能确认
     *
     * @param userId 用户id
     * @return {@link Integer}
     */
    public Integer getOrderNumNotConfirm(Integer userId){
        return subscribeUserOrderMapper.getOrderNumNotConfirm(userId);
    }
}
